# -*- encoding:utf-8 -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 8
_modified_time = 1357398287.982
_enable_loop = True
_template_filename = 'resources/Lehrveranstaltung.html'
_template_uri = 'resources/Lehrveranstaltung.html'
_source_encoding = 'utf-8'
_exports = []


def render_body(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        list = context.get('list', UNDEFINED)
        Title = context.get('Title', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'\r\n<html>\r\n<head>\r\n    <!--  <script>\r\n        function Open() {\r\n            var element = document.getElementById("decision");\r\n            var value = element.options[element.selectedIndex].value;\r\n\r\n            window.location.href = window.location.pathname + \'open/\' + value;\r\n           \r\n        }\r\n</script>-->\r\n\r\n    <title>')
        # SOURCE LINE 14
        __M_writer(unicode(Title))
        __M_writer(u'</title>\r\n\r\n</head>\r\n<body>\r\n    <h2>Navigation</h2>\r\n\r\n    <ul id="list-nav">\r\n        <li><a href="/Lehrveranstaltungen">Lehrveranstaltungen</a></li>\r\n        <li><a href="/Lerneinheiten">Lerneinheiten</a></li>\r\n        <li><a href="/Marken">Marken</a></li>\r\n        <li><a href="/Themen">Themen</a></li>\r\n        <li><a href="/Fragen">Fragen</a></li>\r\n    </ul>\r\n\r\n    <h2>')
        # SOURCE LINE 28
        __M_writer(unicode(Title))
        __M_writer(u' Erstellen</h2>\r\n\r\n    <form action="save" method="post" accept-charset="utf-8">\r\n        Bezeichner<input type="text" name="Bezeichner" value="" />\r\n        Beschreibung\r\n        <input type="text" name="Beschreibung" value="" />\r\n\r\n        <button type="submit">Add</button>\r\n        <button type="reset">Clear</button>\r\n    </form>\r\n\r\n    <h2>')
        # SOURCE LINE 39
        __M_writer(unicode(Title))
        __M_writer(u' Liste</h2>\r\n    <ul>\r\n')
        # SOURCE LINE 41
        for a in list:
            # SOURCE LINE 42
            __M_writer(u'    <li>\r\n        <a href="open?Bezeichner=')
            # SOURCE LINE 43
            __M_writer(unicode(a.Bezeichner))
            __M_writer(u'">')
            __M_writer(unicode(a.Bezeichner))
            __M_writer(u'</a>\r\n        <a href="Remove?Bezeichner=')
            # SOURCE LINE 44
            __M_writer(unicode(a.Bezeichner))
            __M_writer(u'">Remove</a>\r\n    </li>\r\n')
        # SOURCE LINE 47
        __M_writer(u'    </ul>\r\n\r\n\r\n    <!--</select>\r\n\r\n<button type="submit">Del</button>\r\n <button type="button" onclick="Open()">Open</button>\r\n</form>-->\r\n\r\n\r\n\r\n\r\n\r\n</body>\r\n</html>')
        return ''
    finally:
        context.caller_stack._pop_frame()


